home *** CD-ROM | disk | FTP | other *** search
/ Zoom 2 / Zoom - Release 2 (1996)(Active Software)[!].iso / utilities / disk / cdrom / readcdda / install_readcdda < prev    next >
Encoding:
Text File  |  1996-01-25  |  3.6 KB  |  212 lines

  1. ;
  2. ; $VER: Install ReadCDDA V1.0 (17.01.1996)
  3. ; This Install-script contains to ReadCDDA V1.0 ©1996 by Michael Siegel
  4. ;
  5.  
  6. (if (= (exists "Env:Language") 1)
  7.     ; GetEnv reports "String too long" if the variable doesn't exist! :(
  8.     (set @language (getenv "language"))
  9. )
  10.  
  11. ;**************************************************************************
  12. ; English Installation
  13.  
  14. (set default-lang 1)
  15.  
  16. (set #bad-kick
  17.     "You must have AmigaOS Release 3.0 or newer to use ReadCDDA."
  18. )
  19.  
  20. (set #welcome
  21.     (cat
  22.         "\n\n\nWelcome to the ReadCDDA installation.\n\n"
  23.         "   ReadCDDA ©1996  Michael Siegel."
  24.     )
  25. )
  26.  
  27. (set #install-parts "Please select the parts you wish to install")
  28.  
  29. (set #item-readcdda "ReadCDDA")
  30.  
  31. (set #item-readcdda-guide "ReadCDDA.guide")
  32.  
  33. (set #item-locale "Translations")
  34.  
  35. (set #where-readcdda
  36.     (cat
  37.         "Please select the Directory you would like to ReadCDDA to \n"
  38.         "be installed?."
  39.     )
  40. )
  41.  
  42. (set #which-language "Which languages should be installed?")
  43.  
  44. (set #copy "Copying %s to %s...")
  45.  
  46. ;**************************************************************************
  47. ; Deutsche Installation
  48.  
  49. (if (= @language "deutsch")
  50.     (
  51.         (set default-lang 2)
  52.  
  53.         (set #bad-kick
  54.             (cat
  55.                 "Tut mir Leid!\n"
  56.                 "Aber Sie müßen AmigaOS Release 3.0 oder neur haben für ReadCDDA."
  57.             )
  58.         )
  59.         (set #welcome
  60.             (cat
  61.                 "\n\n\nWillkommen zu der Installation von ReadCDDA.\n\n"
  62.                 "ReadCDDA ©1996  Michael Siegel."
  63.             )
  64.         )
  65.  
  66.         (set #install-parts "Wählen Sie bitte die Teile, die Sie installieren wollen.")
  67.  
  68.         (set #item-readcdda "ReadCDDA")
  69.  
  70.         (set #item-readcdda-guide "ReadCDDA.guide")
  71.  
  72.         (set #item-locale "Kataloge")
  73.  
  74.         (set #where-readcdda "Wählen Sie bitte das Directory für ReadCDDA.")
  75.  
  76.         (set #which-language "Welche Sprachen sollen installiert werden?")
  77.  
  78.         (set #copy "Kopiere %s nach %s...")
  79.     )
  80. )
  81.  
  82. ;**************************************************************************
  83. ; the installaion script
  84.  
  85. (set @default-dest "")
  86.  
  87. ; Check Kickstart version. Exit if not at least 3.0
  88. (if (< (/ (getversion) 65536) 39)
  89.         (abort #bad-kick)
  90. )
  91.  
  92. (message #welcome)
  93.  
  94. (welcome)
  95.  
  96. (set install-files
  97.     (askoptions
  98.         (prompt #install-parts)
  99.         (help   @askoptions-help)
  100.         (choices
  101.             #item-readcdda
  102.             #item-readcdda-guide
  103.             #item-locale
  104.         )
  105.         (default 7)
  106.     )
  107. )
  108.  
  109. (if (IN install-files 0)
  110.     (set readcdda-dest
  111.         (askdir
  112.             (prompt  #where-readcdda)
  113.             (help    @askdir-help)
  114.             (default "Work:")
  115.         )
  116.     )
  117. )
  118.  
  119. (if (IN install-files 1)
  120.     (set guide-dest readcdda-dest)
  121. )
  122.  
  123. (set languages 0)
  124.  
  125. (if (IN install-files 2)
  126.     (set lang
  127.         (askoptions
  128.             (prompt  #which-language)
  129.             (help    @askoptions-help)
  130.             (choices
  131.                 "English"
  132.                 "Deutsch"
  133.             )
  134.             (default default-lang)
  135.         )
  136.     )
  137. )
  138.  
  139. ; And now do the actual installation
  140.  
  141. (complete 0)
  142.  
  143. (if (IN install-files 0)
  144.     (
  145.         (copyfiles
  146.             (prompt (#copy "ReadCDDA" readcdda-dest))
  147.             (source "ReadCDDA")
  148.             (dest   readcdda-dest)
  149.             (help   @copyfiles-help)
  150.             (infos)
  151.             (confirm)
  152.         )
  153.     )
  154. )
  155.  
  156. (complete 33)
  157.  
  158. (if (IN install-files 1)
  159.     (
  160.         (copyfiles
  161.             (prompt (#copy "ReadCDDA.guide" guide-dest))
  162.             (source "ReadCDDA.guide")
  163.             (help   @copyfiles-help)
  164.             (dest   guide-dest)
  165.             (infos)
  166.             (confirm)
  167.         )
  168.     )
  169. )
  170.  
  171. (complete 66)
  172.  
  173. (if (IN install-files 2)
  174.     (
  175.         (set n 0)
  176.  
  177.         (while
  178.             (set language
  179.                 (select n
  180.                     "English"
  181.                     "Deutsch"
  182.                     ""
  183.                 )
  184.             )
  185.  
  186.             (
  187.                 (if (AND (IN lang n) (<> 0 n))
  188.                     (
  189.                         (set catalog
  190.                             (tackon "Catalogs"
  191.                                 (tackon language "readcdda.catalog")
  192.                             )
  193.                         )
  194.                         (set destination (tackon "Locale:Catalogs" language))
  195.  
  196.                         (copylib
  197.                             (prompt (#copy catalog destination))
  198.                             (source catalog)
  199.                             (dest   destination)
  200.                         )
  201.                     )
  202.                 )
  203.  
  204.                 (set n (+ n 1))
  205.             )
  206.         )
  207.     )
  208. )
  209.  
  210. (complete 100)
  211. (exit)
  212.